package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.PaymentType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author liubo
 * @description 针对表【payment_type(支付方式表)】的数据库操作Mapper
 * @createDate 2023-07-24 15:48:00
 * @Entity com.atguigu.lease.model.PaymentType
 */
@Mapper
public interface PaymentTypeMapper extends BaseMapper<PaymentType> {

     @Select("select * from payment_type")
    List<PaymentType> paymentlist();

    void Update(PaymentType paymentType);

    @Delete("delete from payment_type where id = #{id}")
    void removeById(Long id);

    List<PaymentType> selectListByRoomId(Long id);
}




